﻿
using UnityEngine;
using FastDev;
using Cysharp.Threading.Tasks;

public class ResExample : MonoBehaviour
{
    // Start is called before the first frame update
    private async UniTaskVoid Start()
    {
        ResManager.Instance.resLoadType = ResLoadType.FromBundles;
        await ResManager.Instance.LoadAllAssetBundle();

        Instantiate(ResManager.Instance.LoadAsset<GameObject>("prefab","Assets/Example/1.Res/Cube.prefab"));
    }

    private void ResUpdater_onUpdateProcess1(string arg1, float arg2)
    {
        throw new System.NotImplementedException();
    }

    private void ResUpdater_onUpdateFailed()
    {
        throw new System.NotImplementedException();
    }

    private void ResUpdater_onUpdateProcess(string arg1, float arg2)
    {
        throw new System.NotImplementedException();
    }
}
